package com.lin.server;

import com.lin.dataobject.Hospital;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface HospitalService {
    Hospital findOne(String id);

    List<Hospital> findAll(String name, String startTime, String endTime);
    Page<Hospital> findAll(String name, String startTime, String endTime, Pageable pageable);


    Hospital save(Hospital hospital);

    void del(Hospital hospital);

    Long getSize(String name, String startTime, String endTime);

    List<Hospital> findAll();
}
